

<%@ page import="cofee.Item" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'item.label', default: 'Item')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${itemInstance}">
            <div class="errors">
                <g:renderErrors bean="${itemInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${itemInstance?.id}" />
                <g:hiddenField name="version" value="${itemInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna1"><g:message code="item.coluna1.label" default="Coluna1" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna1', 'errors')}">
                                    <g:textField name="coluna1" value="${itemInstance?.coluna1}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna10"><g:message code="item.coluna10.label" default="Coluna10" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna10', 'errors')}">
                                    <g:textField name="coluna10" value="${itemInstance?.coluna10}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna11"><g:message code="item.coluna11.label" default="Coluna11" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna11', 'errors')}">
                                    <g:textField name="coluna11" value="${itemInstance?.coluna11}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna12"><g:message code="item.coluna12.label" default="Coluna12" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna12', 'errors')}">
                                    <g:textField name="coluna12" value="${itemInstance?.coluna12}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna13"><g:message code="item.coluna13.label" default="Coluna13" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna13', 'errors')}">
                                    <g:textField name="coluna13" value="${itemInstance?.coluna13}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna14"><g:message code="item.coluna14.label" default="Coluna14" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna14', 'errors')}">
                                    <g:textField name="coluna14" value="${itemInstance?.coluna14}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna15"><g:message code="item.coluna15.label" default="Coluna15" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna15', 'errors')}">
                                    <g:textField name="coluna15" value="${itemInstance?.coluna15}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna16"><g:message code="item.coluna16.label" default="Coluna16" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna16', 'errors')}">
                                    <g:textField name="coluna16" value="${itemInstance?.coluna16}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna17"><g:message code="item.coluna17.label" default="Coluna17" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna17', 'errors')}">
                                    <g:textField name="coluna17" value="${itemInstance?.coluna17}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna18"><g:message code="item.coluna18.label" default="Coluna18" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna18', 'errors')}">
                                    <g:textField name="coluna18" value="${itemInstance?.coluna18}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna19"><g:message code="item.coluna19.label" default="Coluna19" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna19', 'errors')}">
                                    <g:textField name="coluna19" value="${itemInstance?.coluna19}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna2"><g:message code="item.coluna2.label" default="Coluna2" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna2', 'errors')}">
                                    <g:textField name="coluna2" value="${itemInstance?.coluna2}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna20"><g:message code="item.coluna20.label" default="Coluna20" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna20', 'errors')}">
                                    <g:textField name="coluna20" value="${itemInstance?.coluna20}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna21"><g:message code="item.coluna21.label" default="Coluna21" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna21', 'errors')}">
                                    <g:textField name="coluna21" value="${itemInstance?.coluna21}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna22"><g:message code="item.coluna22.label" default="Coluna22" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna22', 'errors')}">
                                    <g:textField name="coluna22" value="${itemInstance?.coluna22}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna23"><g:message code="item.coluna23.label" default="Coluna23" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna23', 'errors')}">
                                    <g:textField name="coluna23" value="${itemInstance?.coluna23}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna24"><g:message code="item.coluna24.label" default="Coluna24" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna24', 'errors')}">
                                    <g:textField name="coluna24" value="${itemInstance?.coluna24}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna25"><g:message code="item.coluna25.label" default="Coluna25" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna25', 'errors')}">
                                    <g:textField name="coluna25" value="${itemInstance?.coluna25}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna26"><g:message code="item.coluna26.label" default="Coluna26" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna26', 'errors')}">
                                    <g:textField name="coluna26" value="${itemInstance?.coluna26}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna27"><g:message code="item.coluna27.label" default="Coluna27" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna27', 'errors')}">
                                    <g:textField name="coluna27" value="${itemInstance?.coluna27}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna28"><g:message code="item.coluna28.label" default="Coluna28" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna28', 'errors')}">
                                    <g:textField name="coluna28" value="${itemInstance?.coluna28}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna29"><g:message code="item.coluna29.label" default="Coluna29" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna29', 'errors')}">
                                    <g:textField name="coluna29" value="${itemInstance?.coluna29}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna3"><g:message code="item.coluna3.label" default="Coluna3" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna3', 'errors')}">
                                    <g:textField name="coluna3" value="${itemInstance?.coluna3}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna30"><g:message code="item.coluna30.label" default="Coluna30" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna30', 'errors')}">
                                    <g:textField name="coluna30" value="${itemInstance?.coluna30}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna31"><g:message code="item.coluna31.label" default="Coluna31" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna31', 'errors')}">
                                    <g:textField name="coluna31" value="${itemInstance?.coluna31}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna32"><g:message code="item.coluna32.label" default="Coluna32" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna32', 'errors')}">
                                    <g:textField name="coluna32" value="${itemInstance?.coluna32}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna33"><g:message code="item.coluna33.label" default="Coluna33" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna33', 'errors')}">
                                    <g:textField name="coluna33" value="${itemInstance?.coluna33}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna34"><g:message code="item.coluna34.label" default="Coluna34" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna34', 'errors')}">
                                    <g:textField name="coluna34" value="${itemInstance?.coluna34}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna35"><g:message code="item.coluna35.label" default="Coluna35" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna35', 'errors')}">
                                    <g:textField name="coluna35" value="${itemInstance?.coluna35}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna36"><g:message code="item.coluna36.label" default="Coluna36" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna36', 'errors')}">
                                    <g:textField name="coluna36" value="${itemInstance?.coluna36}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna4"><g:message code="item.coluna4.label" default="Coluna4" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna4', 'errors')}">
                                    <g:textField name="coluna4" value="${itemInstance?.coluna4}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna5"><g:message code="item.coluna5.label" default="Coluna5" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna5', 'errors')}">
                                    <g:textField name="coluna5" value="${itemInstance?.coluna5}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna6"><g:message code="item.coluna6.label" default="Coluna6" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna6', 'errors')}">
                                    <g:textField name="coluna6" value="${itemInstance?.coluna6}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna7"><g:message code="item.coluna7.label" default="Coluna7" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna7', 'errors')}">
                                    <g:textField name="coluna7" value="${itemInstance?.coluna7}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna8"><g:message code="item.coluna8.label" default="Coluna8" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna8', 'errors')}">
                                    <g:textField name="coluna8" value="${itemInstance?.coluna8}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="coluna9"><g:message code="item.coluna9.label" default="Coluna9" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'coluna9', 'errors')}">
                                    <g:textField name="coluna9" value="${itemInstance?.coluna9}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="pedido"><g:message code="item.pedido.label" default="Pedido" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: itemInstance, field: 'pedido', 'errors')}">
                                    <g:select name="pedido.id" from="${cofee.Pedido.list()}" optionKey="id" value="${itemInstance?.pedido?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
